package com.lsmw.ucenter.client;

/*
 *ClassName:MyAdminClient
 *UserName:三号男嘉宾
 *CreateTime:2021-03-25
 */

import com.lsmw.commonutils.R;
import com.lsmw.ucenter.client.impl.MyAdminClientImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "service-admin", fallback = MyAdminClientImpl.class)
public interface MyAdminClient {
    @GetMapping(value = "/admin/ls-admin/{adminId}",headers = "Content-type=application/json;charset=UTF-8")
    R getAdminById(@PathVariable String adminId);
}
